package com.pengtu.gsj.service.impl.gj;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.pengtu.gsj.dao.base.Page;
import com.pengtu.gsj.dao.base.QueryFilter;
import com.pengtu.gsj.entity.gj.NationFrom;
import com.pengtu.gsj.service.gj.NationfromService;
import com.pengtu.gsj.dao.gj.NationFromDao;

/**
 * 
 * 
 * NationfromServiceImpl
 * 
 * 2017年4月18日 下午5:34:03
 * 
 * @version 1.0.0
 * 
 */
@Transactional
@Service
public class NationfromServiceImpl implements NationfromService {

	@Autowired
	private NationFromDao nationfromDao;

	@Override
	public List<NationFrom> getNationfroms(QueryFilter queryFilter) {
		return nationfromDao.find(queryFilter);
	}

	@Override
	public Page<NationFrom> findNationfroms(Page<NationFrom> page,
			QueryFilter queryFilter) {
		return nationfromDao.findPage(page, queryFilter);
	}

	@Override
	public NationFrom getNationfrom(String id) {
		return nationfromDao.get(id);
	}

	@Override
	public void saveNationfrom(NationFrom nationfrom) {
		nationfromDao.save(nationfrom);
	}

	@Override
	public void deleteNationfrom(String id) {
		nationfromDao.delete(id);

	}

}
